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'");
Printable View
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( ).
is there another function that i can use with iostream
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.