Search found 6 matches
- Mon May 11, 2009 4:41 pm
- Forum: PHP - Code
- Topic: Hide HTML Tag's with PHP event(solved)
- Replies: 1
- Views: 250
Hide HTML Tag's with PHP event(solved)
So I just cannot seem to figure this out. Maybe I am attacking it wrong. I tried using an if statement and an Echo, and it displayed everything very skewed and wouldn't use my inner PHP functions. So I am at a loss of ideas. <?php if( is_in_market() ){ ?> <div class="col1"> ...
- Thu Mar 26, 2009 9:35 pm
- Forum: PHP - Code
- Topic: [Solved] Valid use of the WHERE command
- Replies: 8
- Views: 351
Re: Forgot the Command *woops*
I got it to work thanks so much! Here's how to those whom are curious! if(isset($_SESSION['PoemID'])) { if($_SESSION['PoemID'] > 0) { //Load and select DB $result = mysql_query("SELECT `id`,`title`,`poem`,`meaning` FROM `Poetry` WHERE `id`=" . $_SESSION['PoemID'])...
- Thu Mar 26, 2009 8:58 pm
- Forum: PHP - Code
- Topic: [Solved] Valid use of the WHERE command
- Replies: 8
- Views: 351
Re: Forgot the Command *woops*
if(isset($_SESSION['PoemID'])) { if($_SESSION['PoemID'] > 0) { //Load DB and table same way as above $result = mysql_query("SELECT `id` FROM `Poetry` WHERE `id`=$_SESSION['PoemID']") or die(mysql_error()); $row = mysql_fetch_array($result); ec...
- Thu Mar 26, 2009 8:45 pm
- Forum: PHP - Code
- Topic: [Solved] Valid use of the WHERE command
- Replies: 8
- Views: 351
Re: Forgot the Command *woops*
Ah!!!! Thanks! Hahaha the irony in how in my commented line I said "where" hahaha.
Quick question or two:
is it any different when using a variable as the determiner
WHERE id=$varName?
and do I still get the array the same way?
Quick question or two:
is it any different when using a variable as the determiner
WHERE id=$varName?
and do I still get the array the same way?
- Thu Mar 26, 2009 8:01 pm
- Forum: PHP - Code
- Topic: [Solved] Valid use of the WHERE command
- Replies: 8
- Views: 351
Re: Forgot the Command *woops*
It's not a problem but an optimization issue thing.
Like the code works but I know there's a faster way to search for an item in a Table using a variable then reading each row. Do you know what I mean?
Like the code works but I know there's a faster way to search for an item in a Table using a variable then reading each row. Do you know what I mean?
- Thu Mar 26, 2009 7:51 pm
- Forum: PHP - Code
- Topic: [Solved] Valid use of the WHERE command
- Replies: 8
- Views: 351
[Solved] Valid use of the WHERE command
I've been googling and I can't figure it out but here's my code maybe you can help me out! <?php if(isset($_SESSION['PoemID'])) { if($_SESSION['PoemID'] > 0) { $dbh = mysql_connect("BLANK.com", "BLEEEP", "BLEEEP") or die("Unable to connect to MySQ...