Jump to content

[SOLVED] Help With IF Statement


refiking

Recommended Posts

I want to run a query on the db based on the first letter of the event_id.  How can I use an if statement based on the first letter of the event_id?  Here is the code that I have so far:

$event_id = $_GET['event'];
$s1 = "INSERT INTO Pending(user_id,event_id)VALUES('$user','$event_id')";
mysql_query($s1) or die;
//IF ($event_id starts with T) {
//blah blah blah

Link to comment
https://forums.phpfreaks.com/topic/86865-solved-help-with-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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