Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
I agree, it's just a SMF forums with a design template that you picked out... Not much to critique anyway. -Don't use ads unless you have a load of traffic coming through, and, by judging the post amount, it looks like you don't have much. -Like j_combs mentioned, the "Creative" logo is blurry. I'm not even sure what kind of effect you're going for. -I do like the color scheme though.
-
Ok, well does it exist?
-
You took the exit; out, right? When you echo out the sql statement does it look correct? Are you still getting the "column not found" error? If so, go to your database and ensure it's exactly the same. Also, when you call the extracted you're using $uid rather than $user. $user = mysql_fetch_array($result); echo '</pre> <form>'; echo '';< needs to be: $user = mysql_fetch_array($result); echo '</pre> <form>'; echo ''; // CHANGED<
-
ok, so if on step 1 i have a field 'name' and i validate it, and now move to step 2 the value of 'name' would be there, since the page had been reloaded only once to validate the $_POST. But would be lost after the visitor submits step 2 correct? Yes it would be lost. You can either store it in a session or a hidden field like meomike mentioned, to retain the values.
-
[SOLVED] How to use Webmin ? Need help
Maq replied to ankur0101's topic in Other Web Server Software
Assuming you mean, 'not', please define this: -
[SOLVED] **SIMPLE PHP QUESTION - NEED HELP **
Maq replied to dimakritchevski's topic in PHP Coding Help
Next time, there is a tab labeled [sOLVED]. -
You give the mysql_query function the wrong string... Change the name of these strings: $sql = "UPDATE `basket` SET qty = '$qty' WHERE item_id = '$item_id'" or die(mysql_error()); echo $sql;
-
Post your current code please.
-
Cause that's how you would extract it from your database, using GROUP BY.
-
You can perform a check to see if the current time is between these 2 intervals with the date function.
-
[SOLVED] Access a class from inside another class
Maq replied to papaface's topic in PHP Coding Help
You need to use "extends" and call the desired function from the extended class with parent: class someRandomclass { function myName() { return "Andrew"; } } class anotherRandomclass extends someRandomclass { function bothNames() { echo parent::myName() . " randomer"; } } $example2 = new anotherRandomclass(); echo $example2->bothNames(); ?> -
That doesn't look like the correct page or line numbers. You can't have any output before you call the header() function. Read more here: HEADER ERRORS
-
Can you post an example? Every time you submit or refresh the page, you need to catch/pass the variables.
-
That's something that you're supposed to do, the tab labeled [sOLVED]. I'll do it this time.
-
I agree with nrg_alpha, I think it looks nice and professional. The only other thing I would change is the color scheme. It goes from white, to dark blue or dark gray. Just seems like it doesn't look right. I'm not the color schema expert but maybe a shade background for the top banner? Anyway, nice job
-
That would be an option but, just note that it won't be 100% accurate. Users can disable JS and I don't think the unload() function is supported by all browsers.
-
Lol. herghost, you need to learn to properly indent and format your code, this will help with debugging. The code you posted only looks like bits and pieces of the 'real' code.
-
You're never getting the user_id from the previous page. Try this (*comments in code*): mysql_select_db("$db_name") or die("Could not find database"); $uid = $_GET['uid']; // Added to get the id from the URL $query = "SELECT username FROM members WHERE user_id = '$uid'"; $result = mysql_query($query) or die(mysql_error()); // Added or die for debugging
-
Just like most OS's Linux has users that are given special permissions. If your user does not have matched permissions to edit/delete/update/modify etc... then you will receive these errors. I've never used a reseller account. Do you, by any chance, have SSH access?
-
Neither. I mean the user these scripts are running as on your actual server.
-
The first error is because the user you're executing "mkdir" doesn't have correct permissions to perform that command. If you're running as root you can just use "sudo mkdir" but I doubt you do if this a shared server. Are you testing this on your local machine? The second error should go away if you fix the first.
-
I'm not sure about about the other errors, but read this sticky for the Headers error: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
-
Could someone please tell me why this code does not work
Maq replied to deemurphy's topic in PHP Coding Help
Book 2 & 3 by Linda and Mark...? Never heard of them. In any-case, you need to get a current book like thorpe mentioned, or, go online and find tutorials that have been recently written. -
Your code is so obfuscated, if you properly formatted then you would probably see why it's not working... Try this: while($row = mysql_fetch_array($result)) { echo "Go!"; } ?> I know right, you must way 50lbs...
-
Why don't you just use the GET method and pass the the id of the user through the URL? echo ""; Then wherever you compose the message you can just grab the id with: $to_id = $_GET['to_id'];