Jump to content

I hate syntax problems....


BrotherLogic

Recommended Posts

I need help with some syntax in an INSERT QUERY.

  [code]$insertfundquery = "INSERT INTO longterm( fid, fundname, starrating) VALUES ('$fundname', '$starrating')";[/code]


Half way through a loop this script comes up in error becuase $fundname = MacKenzie's

What is the right syntax to include apostrophes in a string........

Is there a way?

Thanks Everyone
Link to comment
https://forums.phpfreaks.com/topic/17577-i-hate-syntax-problems/
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.