• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

php mysql query extend to perform two actions

I have the following snippet of php code.  I need to truncate two tables...how do I format the $query1 line to do this?

   
 $query1 = "TRUNCATE TABLE ALIASES";
    $result = mysql_query($query1);

    if ($result) 
       echo "ALIASES Table Reset
		 
	";
    else 
       echo "There was a problem resetting ALIASES
		 
	";

Open in new window

0
pda4me
Asked:
pda4me
1 Solution
 
Ray PaseurCommented:
Use two TRUNCATE queries.  Run them separately.  
0
 
Hugh McCurdyCommented:
I agree with Ray.
0
 
pda4meAuthor Commented:
Thanks Ray!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now