-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
If you want someone to write all the code for you then see the freelance section,
-
Yes.
-
use $cuffx = strtolower($line['cuff']);
-
Erm.. you lost me do you mean echo $_GET['Test'];?
-
Adding users to MySQL database with PHP and cPanel
MadTechie replied to BigDoug's topic in PHP Coding Help
maybe posting your real code will reveal real problems just another one from the same line as the one above <?php $query = "INSERT INTO user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, index_priv, alter_priv, references_priv) VALUES ('localhost', 'MyAdminUserForCpanel', 'PASSWORD(MyPassword!')', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'"; ?> missing the close bracket ")" -
i don't know how to help you sorry..
-
echo "<p><strong>".($i+1).". Title: "; echo stripslashes($row["title"]); echo "</strong><br>Author: "; echo stripslashes($row["author"]); echo "<br>ISBN: "; echo stripslashes($row["isbn"]); echo "<br>Price: "; echo stripslashes($row["price"]); echo "</p>"; produces this from $query = "select * from books"; Well thats amazing erm.. try the echo "<p><strong>".($i+1).". Title: "; echo stripslashes($row["title"]); echo "</strong><br>Author: "; echo stripslashes($row["author"]); echo "<br>ISBN: "; echo stripslashes($row["isbn"]); echo "<br>Price: "; echo stripslashes($row["price"]); echo "</p>"; to echo "<p><strong>".($i+1).". Name: "; echo stripslashes($row["Name"]); echo "</strong><br>Age: "; echo stripslashes($row["Age"]); echo "<br>State: "; echo stripslashes($row["State"]); echo "<br>Sponsor: "; echo stripslashes($row["Sponsor"]); echo "</p>"; and Good Luck
-
Adding users to MySQL database with PHP and cPanel
MadTechie replied to BigDoug's topic in PHP Coding Help
Well from what i see you have alot of diffent "typ'os" until they are cleared, i'm not sure what to point out -
Correct
-
no, no, he wants do to it the book way.. other options were offered..
-
use echo $_cookie['username'];
-
Please use the code tags, also how are they loggin in ? need more info
-
post all the code
-
either get a better book are go back over thr chapters you skipped
-
Adding users to MySQL database with PHP and cPanel
MadTechie replied to BigDoug's topic in PHP Coding Help
well you better check it in the $query = "INSERT INTO user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, index_priv, alter_priv, references_priv) VALUES ('localhost', 'MyAdminUserForCpanel', 'PASSWORD(MyPassword!')', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'"; -
Adding users to MySQL database with PHP and cPanel
MadTechie replied to BigDoug's topic in PHP Coding Help
'PASSWORD(MyPassword!')' is that correct ? -
[SOLVED] creating preview images dynamically
MadTechie replied to tryingtolearn's topic in PHP Coding Help
thats one option but fontgen.php should be more like <?php header("Content-type: image/png"); $im = imagecreate(600, 40); $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagettftext($im, 30, 0, 11, 31, $grey, $_GET['font'], $_GET['text']); imagettftext($im, 30, 0, 10, 30, $black, $_GET['font'], $_GET['text']); imagepng($im); imagedestroy($im); ?> -
OK FINE!! What does $query = "select * from books"; show ? // I am able to post a few records by using $query = "select * from books"; // but not by using $query = "select * from books where ".$searchtype." like '%".$searchterm."%'";
-
[SOLVED] creating preview images dynamically
MadTechie replied to tryingtolearn's topic in PHP Coding Help
i am saying you are using a routine that by design is for creating a single png, so you need to either just create that 1 file per font, or only use the imagettftext in the loop -
[SOLVED] Destroying A PHP Cookie Based On Inactivity Time
MadTechie replied to phpQuestioner's topic in PHP Coding Help
Just use the setcookie on all the actions, thus it will always get set back to 30 minutes, -
[SOLVED] Destroying A PHP Cookie Based On Inactivity Time
MadTechie replied to phpQuestioner's topic in PHP Coding Help
setcookie("TestCookie", $value, time()+1800); /* expire in 30 minutes */ -
[SOLVED] creating preview images dynamically
MadTechie replied to tryingtolearn's topic in PHP Coding Help
the script won't work on a loop as you are creating then destroying each png, you need to create only 1 png and send the header only once or save the file each time. -
i think its more of a HTML problem change Enter the Employee Number : <input type = text name = empno> Enter the Employee Name : <input type = text name = empname> to Enter the Employee Number : <input type="text" name="empno" /> Enter the Employee Name : <input type="text" name="empname" />
-
Oh yes kenrbnsn, checked for that (done it too many times) Humm i am using firefox i'll play with IE see what happens
-
can you post a few records from the database