Hi all,
I'm by no means an expert in SQL and have a query that's causing an error in my logs. The error is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_gifts.status = 1 AND gifts.ID != 26 AND...
Hi all,
I'm new to C# but I'm really enjoying learning it. I've just started a little exercise to try and make a BlackJack simulator. Using 'Lists' to hold the cards etc.
My form shows the possible 5 cards that the Player can hold as Labels (PlayerCard1, PlayerCard2, PlayerCard3 etc).
I want...
Hi all,
I'm trying to optimise my website. I have a large "functions" file. It is 'included' on every page. Is there any speed gain to having one large functions.php file OR is it faster to have an include file that checks what page the visitor is on and then 'includes' a specific small...
Hi,
I have a form on my site that allows people to upload images from their hard drive to my site. I wondered if it was possible to allow people to enter an URL into the form, but instead of "hotlinking" the image that they enter, could a script automatically get the image and upload it to my...
Hi,
I had a dual boot system that let me choose between XP Pro and Vista on boot. I've had to reinstall XP pro but now my system only boots into XP and I'm unsure how to get back into my vista installation.
Has anyone got any advice on how I can correct this situation? I really need to get into...
Hi
Here's what I'm trying to get to work:
UPDATE product_list AS prod_list JOIN mem_background AS mem_bg ON prod_list.id = mem_bg.prod_id SET prod_list.price = 2.23 AND mem_bg.price = 2.23 WHERE prod_list.category = 3 AND prod_list.name NOT LIKE '%Animated%'
Basically I have 2 tables called...
Hi,
I've got a music player on my site that launches in a new window. I don't want to display the "launch music" link if the window is already open and playing. This problem is driving me nuts... Here is where I'm up to:
<script type='text/javascript'>
if(!new_win) {
var new_win;
}
function...
Hi,
I've got a script that lists the elements in an array (a shopping cart):
foreach($cart as $cart_item) {
$product_id = $cart_item->product_id;
$category = $cart_item->category;
etc etc
}
The above code allows me to index through the array but I wondered if there is a way of 'ordering' the...
Hi,
I'm trying to write a regular expression to check if someone has inputted a valid name for themselves. I started off by just making sure they had entered a-z or A-Z or spaces. But I quickly realised that there are names like O'Brian and those names with the funny accent over the 'e' and the...
Hi,
I'm trying to write a script that will allow a user to search my database for peoples names or their year of birth.
I was thinking along the lines of:
SELECT * FROM my_db WHERE first_name LIKE '%$searchString%'
Is the above a good way of searching for somebodies name?
I'm strugging with...
Hi,
I'm really new to regex's and wondered if you could just double check these for me. The first two are working (appear to be) the last one isn't.
function check_only_alphabet($string) {
// THIS SHOULD ONLY ALLOW a-z, A-Z and spaces - it seems to be working
return preg_match('%[^a-zA-Z...
Hi,
I have the following CSS and HTML to produce a rollover effect by using the "height" property in CSS. This works fine in Firefox and in IE8 but when I switch IE8 to "compatibility view" it only shows the whole gif image instead of only 19px height. In other words you can see both states of...
This is the function I want to execute:
function confirm_delete(comment_ID) {
<?php wp_delete_comment( $comment_id ) ?>
}
I need to get var comment_ID into $comment_id ??
Any ideas if this is possible?
Also can you just run php from within javascript like...
Hi
I have the following function (I've slimmed it down for clarity):
function display_ability_to_delete($comment_ID) {
?>
<form action="" method="post" id="commentform">
<div class="inner">
<script type="text/javascript">
function mydelete(comment_ID){
var...
Hi all,
I have found this line in a script and I'm wondering what it does.
$extra_vars = $this->someFunction();
How is this line different from just:
$extra_vars = someFunction();
I've tried searching for the answer on google but I'm getting nowhere.
I'd really appreciate it if someone could...
Hi,
I'm currently developing a website based on Wordpress and I've noticed a few times in the scripts that the author has used <?= instead of <?php
Is there any reason for this? Is there any differences between the two?
Also, while I've got someone's attention who knows what they're doing...
Hi,
I've got a logo I'm trying to draw that includes some text and an image on a background. I can't get the text and image to be transparent to let the background through. I've upload where I'm up to so that you can see what I mean...
I don't make mistakes, I'm merely beta-testing life.
Hi
I'm making an excel spreadsheet to help me fill in my quarterly tax return. I've designed a sheet that will cover one quarter (August through to October). I have several sheets in the workbook, AUG_OUT, AUG_IN, SEP_OUT, SEP_IN, OCT_OUT, OCT_IN, SUMMARY, VAT.
I'd like to expand the sheet to...
Hi
I have a worksheet that has a 'date' column. I wondered if there was anyway of making Excel popup a date picker if I click on the cell.
Its a pain to have to keep typing 01/07/07 , 14/07/07 etc etc
I've searched on Google and on Office Online but couldn't find anything.. it seems like such...
Hi,
I have a worksheet that has some information deliberately off the side of the page that will be printed. If I choose to print everything it will print the main page and then print this extra stuff.
I can obviously specifically choose which page(s) to print but wondered if there was some...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.