stedic Posted February 17, 2008 Share Posted February 17, 2008 Hi, I'm interested in building a small db for the code listed below. However I don't know how to build a query. The object is to create a very simple feature. Add pages, add images, add title. Any help will be appriciated. So far ive got: INSERT TABLE 'comics' I need to build ID Columns. Could someone give me some direction here? mysql_pconnect(*STUFF*); mysql_select_db(*STUFF*) or die("Unable to select database!"); $query = "*STUFF*"; $rs0 = mysql_query($query) or die ("Unable to query database!"); $rec0 = mysql_fetch_array($rs0); $minid = $rec0['min_id']; $maxid = $rec0['max_id']; $i = $_GET['i']; if (($i=='')||($i==0)||($i>$maxid)) { $i=$maxid; } $query = "*STUFF*"; $rs1 = mysql_query($query) or die ("Unable to query database!"); $rec1 = mysql_fetch_array($rs1); $query = "*STUFF*"; $rs2 = mysql_query($query) or die ("Unable to query database!"); ?> Quote Link to comment Share on other sites More sharing options...
AndyB Posted February 17, 2008 Share Posted February 17, 2008 Start here -> http://www.tizag.com/mysqlTutorial/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.