i have to get a url from the terminal and place it in the sql query below but how?
because of the " " i cant place itCode:mysql_query(conn,"SELECT site_id FROM sites WHERE site_url like '$url'");
i have to get a url from the terminal and place it in the sql query below but how?
because of the " " i cant place itCode:mysql_query(conn,"SELECT site_id FROM sites WHERE site_url like '$url'");
Look up sprintf( ).
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
strstreams are deprecated, tough to use properly and only in c++ for backward compatability with legacy c++ code. Modern c++ has stringstreams. These can do anything that a strstream could do but better and easier. Look up stringstream, ostingstream and istringstream in your help files/text for an overview.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi