Jump to content

dastaten

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dastaten's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm using this link... <a href="view.php?id=2">link</a> to pass the "id = 2" to another page, view.php that contains this code... include 'dbconn.php'; $id = $_GET['id']; $query = "SELECT * FROM stories WHERE postid = '$id'"; $result = mysql_query($query); $page = $result['title']; echo $query . "<br /><br />"; echo $page; the echo $query writes SELECT * FROM stories WHERE postid = '2' to the page, but the $page is coming up blank. I'm still fairly new, so I have a feeling it's something easy that I'm just missing. Any help would be greatly appreciated.
  2. I checked there and like what they have to offer. Is that the most comprehensive place to learn? I know very little PHP at this point. Thanks.
  3. I am wanting to learn how to write a php web page that will create a connection to a MySql database and then add and remove entries in the tables through forms on the page. For instance, a web page interface that would display customer names and then allow the user to add/remove/edit specific customer names from the database. Could someone provide some links to good tutorials on this and point me in the right direction? Thanks in advance!
  4. Never mind. I just read that new windows cannot be opened server side...
  5. I have a javascript that opens a window with specific parameters. However, I for a php page to open it. I had a post similar to this, in case you read it. I don't need the original alert box anymore, I just want the page to open the window. Is this possible or can the php only write the code to the page? The problem is the page that runs never does display. It's a member.php page that just logs the user in and then redirects them to the index page. So writing the window.open script to the page doesn't help. Here is the javascript... <script type="text/javascript"> window.open('php121/php121im.php','name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no'); </script> Thanks.
  6. Well, I spoke too soon. That will only write the code to the page. I need that snippet to execute when the php page loads. The php page should pop up the alert box and then call the other page when "Ok" is clicked. Am I making sense?
  7. Ah, I remember "echo" now lol. Thanks so much!
  8. I have a bit of javascript that I need to run in a php file. Can someone tell me the code to do this in php? <SCRIPT type="text/javascript"> if (confirm("Sign in to Instant Messenger? (Be sure to disable pop-up blocker)") ) { newwindow=window.open('php121/php121im.php','name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no'); if (window.focus) {newwindow.focus()}; } </SCRIPT> I just opens an alert box and if "Ok" is clicked, opens another small window with specific attributes. Any help is greatly appreciated. Thanks, DAStaten
×
×
  • 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.