Jump to content
php.lv forumi

izvade no mysql


ziedinjsh

Recommended Posts

Sveiki, man nepieciešama palīdzība šādā jautājumā:

 

es ievadu informāciju no feildiem:

 

mysql_query("INSERT INTO users (artist, email, location, genere, pass, pass2, producer_id)VALUES ('$_POST[artist]','$_POST','$_POST[location]','$_POST[genere]','$_POST[pass]','$_POST[pass2]','$_POST[producer_id]')");

 

bet kāviņu izvadīt? atpakaļ php kodā?

Link to comment
Share on other sites

$row = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE id=$id"));

echo "<table>";
echo "<tr><td>artist</td><td>email</td><td>location</td><td>genere</td><td>pass</td><td>pass2</td><td>producer_id</td></tr>";
echo "<tr><td>$row[artist]</td><td>$row[email]</td><td>$row[location]</td><td>$row[genere]</td><td>$row[pass]</td><td>$row[pass2]</td><td>$row[producer_id]</td></tr>";
echo "</table>";

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...