Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
you can't update with an order. Explain what you're trying to do. You want to order them and then increment the order or something? I think you'd have to do this in PHP with many queries.
-
and you don't get an error? If you look at the manual it says that means there was an error. Try just printing the odbc_errormsg after the query.
-
You have the or die() in the wrong set of parenthesis (and I think one too many?). Seperate this all out until you know what it's doing better. What you have looks like this: $ex = odbc_exec($php121db,"select * from UserMaster where uname='$username' and password='$password'"); $chk=odbc_num_rows($ex) or die(odbc_errormsg(); You want: $ex = odbc_exec($php121db,"select * from UserMaster where uname='$username' and password='$password'") or die(odbc_errormsg(); $chk=odbc_num_rows($ex) Also, read the article in my signature called how to ask questions - your title doesn't say anything about the problem...
-
[SOLVED] Help with an File Upload IF statement.
Jessica replied to bizerk's topic in PHP Coding Help
for($i=1; $i<=10; $i++){ if(isset($_FILES['imagefile'.$i]['tmp_name'])){ //etc. } } -
wow, burn. I'm glad you're okay, unless it was your fault, in which case you're an ass. I hate drivers. You know I rode my bike to school today in the 32 degrees and some asshole thought it was funny to honk at me. I've given up trying to exercise my lawful right to the right lane, and I just ride on the sidewalk, cause all texas drivers are assholes. ASSHOLES. It doesn't look like your roll bars actually did much :/
-
$foo = $_SESSION['foo']; print_r($foo->a); Just like you normally would
-
as several people said, sum will return all of them added together. count() is what you want. SELECT count(helmet) AS helmet_count
-
[SOLVED] Is it possible to do this (radio button holding array as value)
Jessica replied to play_'s topic in PHP Coding Help
Are you trying to let them select between multiple characters? Each one should have a unique ID, and you'd use the ID as the value. -
$sub = substr($string, strpos($string, 'search'));
-
permission denied - delete directory via my web document
Jessica replied to linux_win's topic in PHP Coding Help
like omg, did you lk, fnd 0ut if it wuz wind0z r linx? -
I know what you're talking about, but I don't understand the problem? What is your problem with the gaps and duplicate numbers? I usually loop through the results of the user's ordering and assign them into an array, so that removes the gaps/dupes.
-
Heh, glad you got it
-
Is there a simple function to remove whitespace from the front and end of a string? Can't find one in the docs... Edit: Today is my day for finding my own answers function LTrim( value ) { var re = /\s*((\S+\s*)*)/; return value.replace(re, "$1"); } // Removes ending whitespaces function RTrim( value ) { var re = /((\s*\S+)*)\s*/; return value.replace(re, "$1"); } // Removes leading and ending whitespaces function trim( value ) { return LTrim(RTrim(value)); }
-
if you're using resampled and not resized, it shouldn't do that. Can you post your new code?
-
It's very easy to resize any type of images - there are lots of already made scripts and tutorials out there.
-
It looks like it's the quality being reduced. Use this instead http://us3.php.net/manual/en/function.imagecopyresampled.php
-
The easiest way to find out the answer to a question like this is to try it. Yes.
-
That sounds odd. Can you show us an example image? Does it happen with gif or png too?
-
If you'd spent half as much time actually programming and really thinking about what you were trying to do as you spent: thinking up a name, getting the domain, finding a template (you're supposed to be a designer, yet you always use templates, sure), writing up all your copyright and usage bullshit, setting up a forum and making posts in it, thinking of ways that other people can help, and posting about it HERE - it might actually be worth pursuing. If it actually were that simple, a lot more people would have thought of it. People reuse code all the time, that doesn't mean it's worth making a "click to install" type of interface for every little thing you do. It's a waste of time. You have to weigh the cost of development vs the benefits. I can't see why anyone would want to make it easier for themselves to "install" any of your code, but I guess somehow you've convinced some of your "clients". But it looks like you don't actually write much code for them anyways, from the looks of your portfolio. Template, third-party chat, third-party blog, more templates, more templates, paypal shopping cart, template, third party, wee. Perhaps you should stick to installing other OS projects for now.
-
Good point. But yeah, I don't see any reason to use regexp here, since the built in function is likely faster or more efficient or something. Or I just want to be right
-
http://us3.php.net/manual/en/function.substr-count.php They don't want to replace them, just count them.
-
did you try printing the query before running it to see if the problem is PHP or sql?
-
"Godaddy has the world's worst support system." I hate to bump this, but GoDaddy has the BEST support of any host I have ever used. They have 24 hour phone support, and in the 3 years I've been using them I have never had it take more than one short call to get a problem fixed. How are you having trouble getting support from them?
-
didn't we just do this? $submitfile_name = str_replace("'", "", stripslashes($submitfile_name));