Skip to main content
GameDev.net gamedev.net
🔒 Locked 🤖 Godot

PHP/DIV programming

Started by sathenzar Oct 16, 2004 at 8:10 PM 4 replies 550+ views
Original Post
sathenzar
sathenzar
Hey, I'm trying to get it so when I click Show Address Book, teh div shows (this part I've done successfully), then make it so when the div shows it grabs data form a database called addressbook. The code looks like this:



But when I show it it doesn't execute the PHP code. It's jsut blank. Anyone have any ideas? Thanks in advance.
sathenzar
sathenzar
does anyone have any ideas?
MaulingMonkey
MaulingMonkey
You assign $account from $row_3[ 'useracc' ] but then use the variable $useracc which I don't see assigned anywhere in your code, so that should output a bunch of:



You did view the source of your output, right?
daerid
daerid
Realize that ANYTHING between will be processed BEFORE ANYTHING is sent to the client at all.

&#106avascript used to show and hide a div happens LONG after ALL PHP script is executed.
daerid@gmail.com
Zahlman
Zahlman
Also, you appear to be missing a close brace on your while loop :s
MaulingMonkey
MaulingMonkey
Quote:
Original post by Zahlman
Also, you appear to be missing a close brace on your while loop :s


No he's not:

<?php } ?></center>  </font> 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.