Jump to content

MySQL SQL Query


stedic

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.