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!"); ?> Link to comment https://forums.phpfreaks.com/topic/91557-mysql-sql-query/ Share on other sites More sharing options...
AndyB Posted February 17, 2008 Share Posted February 17, 2008 Start here -> http://www.tizag.com/mysqlTutorial/ Link to comment https://forums.phpfreaks.com/topic/91557-mysql-sql-query/#findComment-469032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.