Jump to content

faleira

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

faleira's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. oh wow, i didn't think of doing that  :-[ i was thinking there was some sort of function that allowed me to force it out and was bent on thinking that way  :-[ Thankx for the help  ;D
  2. I'm not sure if this is in the right section or not... But i'm just playing around in php, getting myself familiarized with it, and i was making a script that just autocreates a page of links, with categories n watnot in it. And i came to a little problem that i don't know how to get past. Everything with the adding and watnot of the script is perfectly fine. What i can't seem to solve is to have it so that the link doesn't get parsed as a sublink of the site without needing me to put http://. For example, if i had http://site.com, and i entered in phpfreaks.com into my script, it would tag it on like http://site.com/phpfreaks.com. I don't want to just put the http in before hand, cause then that would cause problems if i entered http:// into the field as well, and end up being http://http://phpfreaks.com. Is there a php command that i could use to have it break out of forcing it from recognizing it as a subfolder?
  3. Hey, I just started coding in php recently and I'm trying to make it so that my Mysql_Query function will be different depending on a $_GET variable, but because php variables aren't recognised in the middle of an sql query, I can't seem to figure out how to do it. I've tried looking around about this, but pretty much every article about that function i find, doesn't really seem to touch on this matter. basically, what i'm trying to do is perform the sql query: [code]Select * From (table) WHERE id=$_GET['value'][/code] I can't seem to find a way around this problem. Could anyone tell me any method i could use so that i may do that?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.