Get Method
Moderator: General Moderators
I tried twigletmac's code and with a small modification it's working(missing space after mactrix or before SET in 'the next line')
But as a sidenote:
$sql = "INSERT INTO mactrix";
Code: Select all
$sql = "INSERT INTO mactrix ";But as a sidenote:
never ever let userinput get unfiltered in a sql-query. Unless you're absolutly sure that magic_quotes are enabled and you find that to be sufficient take a look at mysql_escape_string()$sql .= "SET assetnum='".$_POST['assetnum']."', cpu='".$_POST['cpu']."', os='".$_POST['os']."', loc='".$_POST['loc']."', sn='".$_GET['sn']."', macaddress='".$_POST['macaddress']."', warrentee='".$_POST['warrentee']."'";
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
does any php script run?
e.g.?
Did you check the webserver(application)'s error.log?
parse errors only show up there unless you set display_startup_errors = On in your php.ini (if you do check the value again with phpinfo(); )
Code: Select all
<?php phpinfo(); ?>Did you check the webserver(application)'s error.log?
parse errors only show up there unless you set display_startup_errors = On in your php.ini (if you do check the value again with phpinfo(); )
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Try
http://www.phpmac.com and the forums here. James is usually pretty good with this PHP + Mac stuff.
http://www.phpmac.com and the forums here. James is usually pretty good with this PHP + Mac stuff.
Hello again! Twigletmac, I finally got my errors working again. You gave me code back on page 1 of this Thread to try out. This is my error:
Parse error: parse error in /Library/WebServer/Documents/mfsmsd/forumgetmethtest.php3 on line 59
I noticed that another user said to add a space in the insert statement, i also did that. Any ideas why i am getting a parse error? Thank you for all your time Twigletmac and everyone else who has posted!!
Parse error: parse error in /Library/WebServer/Documents/mfsmsd/forumgetmethtest.php3 on line 59
I noticed that another user said to add a space in the insert statement, i also did that. Any ideas why i am getting a parse error? Thank you for all your time Twigletmac and everyone else who has posted!!
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK