User Profile
Collapse
-
THANK YOU!!! I'll play with it and see how it works.... -
You don't need the column ids and then the values. Your query should look like this:
[PHP]$query1 = "INSERT INTO clients VALUES(null,'$c ompanyName','$n ame','$address' ,'$phone',' $fax','$email') ";
print ($query1);[/PHP]Leave a comment:
-
I'm grabbing the url from the browser using the code below:
[PHP]
$host = $_SERVER['HTTP_HOST'];
$self = $_SERVER['PHP_SELF'];
$query = !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null;
$url = !empty($query) ? "http://$host$self?$que ry" : "http://$host$self";
echo $url;[/PHP]
It is the $url value that contains the text I wish to replace....Leave a comment:
-
replace part of an url with a regular expression- having trouble
I need to replace not just the ASC or DESC but the value it's sorting by. i.e. in a string like this:
http://www.mysite.com/page1.php?valu...sort=ORDER+BY+uservalue1+DESC
I've not had that much experience with regular expresions and haven't had any luck with figuring out a way to replace just the bold part in the string above (after ORDER+BY.) Bear in mind, uservalue1 and DESC after ORDER+BY may be something...
No activity results to display
Show More
Leave a comment: