Jump to content
Old threads will finally start getting archived ×

leaboy12

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

About leaboy12

  • Birthday 03/12/1988

Profile Information

  • Gender
    Male
  • Location
    Cape Town - South Africa

leaboy12's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well spotted, the missing quote was from when i added the x's the issue is somewhere else, my search continues
  2. I'm receiving an error stating that an unexpected T_STRING has occurred on line 53. $db = new DatabaseConnection('xxxxxxx, 'xxxxxx', 'xxxxxxx', 'xxxxxx'); $targetList = "INSERT INTO xxxxxx(id, name, list_type, date_entered, date_modified, "; $targetList .= "modified_user_id, assigned_user_id, created_by) "; $targetList .= "VALUES('".$target_list_id."', '".$target_list_name."', 'seed', "; $targetList .= "'".date('Y-m-d H:i:s')."', '".date('Y-m-d H:i:s')."', "; $targetList .= "'c10e6353-182f-19fc-0c15-478499c79e1c', 'c10e6353-182f-19fc-0c15-478499c79e1c', "; $targetList .= "'c10e6353-182f-19fc-0c15-478499c79e1c')"; $result = $db->query($targetList); (line 53) I know this error usually occurs when a string is in a quote in the wrong place or using the wrong type of quote but i cant seem to see any problem like that. Help would be appreciated
  3. I do know the difference PHP is sever side and HTML is client side.
  4. I have a php page (lib.php) that contains a function (function downloadToCSV()) that will grab data from the database a place it into a CSV file. On the same php page (lib.php) i have i <div> tag where i want to call that function (function downloadToCSV()). What is the correct syntax in the <div> tag to call that function??
  5. Awesome!! thanx so much
  6. I have this message displayed in my variable that i want to print out. here is my code: //connect to database $myConnection = mysql_connect('41.204.223.132', 'getsmart2', 'xxxxxx'); if (!$myConnection) { die ('could not Connect'.mysql_error($myConnection)); } else { //connection made, do nothing } $sqlQuery; $result; $databaseSchema = 'getsmart_moodle'; $sqlQuery = "SELECT * FROM getsmart_moodle.mdl_assignment_submissions WHERE userid = 799 AND assignment = 2"; $result = mysql_db_query($databaseSchema, $sqlQuery, $myConnection); echo('RESULT: '.$result.'<br />'); *And it echos' out Resource id#41* I am using a mysql db connection Some help would be fantastic
×
×
  • 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.