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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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