nav33n 472 Purple hazed! Team Colleague Featured Poster

Interesting indeed !

nav33n 472 Purple hazed! Team Colleague Featured Poster

<form method="post" action="resumeinsert.php" >

There is no enctype in your form. You need enctype when you are using input type=file.

nav33n 472 Purple hazed! Team Colleague Featured Poster

$html = implode('', file($url_to_fetch)); // this is the code that gets the code fron that url into an array..

It won't gets the code from the url into an array. Try

$html=htmlentities(implode("",file("http://www.daniweb.com")));

$html will have the contents(javascript,css,..) of www.daniweb.com as a string.

nav33n 472 Purple hazed! Team Colleague Featured Poster

What do you mean by not working ? are you getting any error ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

oops i didnt notice the extra 0 there.

Dude! you noticed an extra 0 there :P

Btw, Congrats ShawnCplus!

Sulley's Boo commented: he meant that he didn't notice the extra zero he typed by mistake in his reply <_< *slaps* +4
nav33n 472 Purple hazed! Team Colleague Featured Poster

Waz up Just a beginner! Welcome to Daniweb! :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

As Ryan_vietnow has already suggested, uploading a file to the database is not a good idea. Upload it to the filesystem and save the path in the database. Check this link. Uploading a file is pretty simple.

nav33n 472 Purple hazed! Team Colleague Featured Poster

However, I should notice that I have added $framePage to the included pages, other wise, I have an error : Undefined framePage variable

The 'error' you are getting is not an error but a notice. If you have turned on notices in your error_reporting, you will get these kinda notices.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Something is in the works regarding this but those of you without access to Area 51 will have to wait and be surprised.

Wow! I can't wait to be surprised :P

iamthwee commented: You don't have to wait, just look in the mirror and you will be so surprised you'll sh*t yourself. +13
~s.o.s~ commented: Don't mind thwee, he is speaking from personal experience methinks. +20
nav33n 472 Purple hazed! Team Colleague Featured Poster

:icon_smile: Cheers man !

nav33n 472 Purple hazed! Team Colleague Featured Poster

time
table
belt

Computer

nav33n 472 Purple hazed! Team Colleague Featured Poster

sailed

nav33n 472 Purple hazed! Team Colleague Featured Poster

Nobody Observes Old Brave Soldiers.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

-659

nav33n 472 Purple hazed! Team Colleague Featured Poster

Bed of roses is something I wish to sleep on.

nav33n 472 Purple hazed! Team Colleague Featured Poster

If you have root password, login with ur root account, create or grant privileges to a user. Check mysql manual for more information !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Grant privileges (using root account) to the user pma. I don't think pma have sufficient privileges.

nav33n 472 Purple hazed! Team Colleague Featured Poster

wind
now
down

Investigate

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) yes sure!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Imelda!

nav33n 472 Purple hazed! Team Colleague Featured Poster

print out the query, execute it in mysql or phpmyadmin. I think $cps and $lps are not passed correctly OR the values of $cps and $lps doesn't return anything when you limit.

nav33n 472 Purple hazed! Team Colleague Featured Poster

eg.

if(1!=2){
         include "error.php";
} else {
 include "includes/function.php";
include "includes/anotherpage.php";
........
}

The basic idea is, if(1!=2) will always return true. So, it will include error.php (where you can have a message saying the site is down or something). Make required changes in the path of all other include files and then remove the condition 1!=2.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check where include directory is. If you are executing a script in, say for example, www/site/test/1.php and you are trying to include a file eg. functions.php, which is in www/site/include folder, you should give, include ("../include/functions.php"); because that's where the file is. If you give, include ("include/functions.php"); it wont be able to find it, hence, you get this error.

nav33n 472 Purple hazed! Team Colleague Featured Poster

motive
mole
live

Jupiter

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) Its not a good option to have spaces in your column names btw.

nav33n 472 Purple hazed! Team Colleague Featured Poster

check if you are echoing anything or having any html tags before calling a header function.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Damn.. ok.. Try this.. Update only a part of the query. For example, update only 1 field first. If it doesn't give you any error, try 2 fields. Keep doing it until you get the error. Then you will know what is causing the error.

nav33n 472 Purple hazed! Team Colleague Featured Poster

While listing the records, show previous name in a textbox and when submit is clicked, update it ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

-655

nav33n 472 Purple hazed! Team Colleague Featured Poster

start and end are keywords. Try changing your column names to something else.

nav33n 472 Purple hazed! Team Colleague Featured Poster

yep! once in a while! ;)

Mild seven

Ferrari or Mc laren ?

Sulley's Boo commented: Fish is healthier <_< +4
nav33n 472 Purple hazed! Team Colleague Featured Poster

:) you have the insert statements outside the loop.
Put

//process form
 
      //this is your add query....
  
      $name = $_POST['name'];
 
      $email = $_POST['email'];
 
      $contact = $_POST['contact'];
 
      $person_attend = $_POST['person_attend'];
  
      $comment = $_POST['comment'];
 
      $query = "INSERT INTO rsvp (id, name, email, contact, person_attend, comment)
   
      VALUES ('', '$name', '$email', '$contact', '$person_attend', '$comment')";
      
      $results = mysql_query($query) or die
  
      ("Could not execute query : $query." . mysql_error());
    
      {
 
      echo "thanks you ";
 
      }
   
      mysql_close();
 }

in place of //insert statements

nav33n 472 Purple hazed! Team Colleague Featured Poster

-652

nav33n 472 Purple hazed! Team Colleague Featured Poster

so
sis
sos

Snippet

nav33n 472 Purple hazed! Team Colleague Featured Poster

Fish (not to eat!)

cigar or cigarette

nav33n 472 Purple hazed! Team Colleague Featured Poster

only insert if these fields are not null.

nav33n 472 Purple hazed! Team Colleague Featured Poster
if($name !="" && $email!="" && $contact!="" && other variables not equal to null ){
//insert statements
} else {
//error message
}
nav33n 472 Purple hazed! Team Colleague Featured Poster

Thats because you dont have a condition in your update query.

update bridal_songs set artist='someone';
update bridal_songs set track='something';

would update all the artists with 'someone' and all the tracks with 'something'. Have some condition like,

update bridal_songs set artist='someone' where id='1';
update bridal_songs set track='something' where id='1';
nav33n 472 Purple hazed! Team Colleague Featured Poster
nav33n 472 Purple hazed! Team Colleague Featured Poster

-649

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check whether errors[0] is not equal to null or empty. If its null or empty, then query the database. If its not null, then there is some error !

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) If you think its solved, mark it as solved.

nav33n 472 Purple hazed! Team Colleague Featured Poster

-647

nav33n 472 Purple hazed! Team Colleague Featured Poster

ant
mat
toy

Calculator

nav33n 472 Purple hazed! Team Colleague Featured Poster
"SELECT *
FROM `table3`
WHERE name LIKE '%hilgard\'s%"

Oh right ! I think I need to sleep for some more time! ;)

nav33n 472 Purple hazed! Team Colleague Featured Poster

hmm.. weird.. Did you try the other option ? escaping ' ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

I am glad I m not a 'junky' ;)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb :)