Complete List of Mysql Commands for PHP tokenization script.

Reply

Join Date: Apr 2004
Posts: 759
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Solved Threads: 35
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Complete List of Mysql Commands for PHP tokenization script.

 
0
  #1
Jul 14th, 2004
does anyone know where i can find a complete list of mysql commands. Im in the proccess of writing a live mysql database interaction for web use. and right now i need to store all mysql commands to an array and have the php script read the array and modify the words as it sees them.

so if i typed in

UPDATE TABLE.....

the script would read up until the first white space. take the string of characters that it had been reading up to that point, check it against the array, and if it found it. it would read the number associated with the array value and then check that number against another array where the number would contain formatting options.


i need it to do this. because when you enter the mysql_query it prints it out and says, you are about to run this query query here) and i want to have clean formatting of the text.
Dont forget to spread the reputation to those that deserve!
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: Complete List of Mysql Commands for PHP tokenization script.

 
0
  #2
Jul 14th, 2004
The only thing I know of is this: http://dev.mysql.com/doc/mysql/en/index.html, where you're going to have to go through it manually. Sorry.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 759
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Solved Threads: 35
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: Complete List of Mysql Commands for PHP tokenization script.

 
0
  #3
Jul 14th, 2004
well...hopefully this wont take tooo many years
Dont forget to spread the reputation to those that deserve!
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 759
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Solved Threads: 35
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: Complete List of Mysql Commands for PHP tokenization script.

 
0
  #4
Jul 15th, 2004
ok so this is what i have so far, its a simpler version of what i have stated before and is just a test to figure out how to break apart arrays.

[php]
<?php
//building the array to check the output against
$check_arr = array(" ", "this", "is", "nothing", "more", "than", "an", "array");
$check_break = explode(" ", $check_arr) or die(mysql_error());
$check_num = 1;
for($check_num >=1; $check_num <= 500; $check_num++)

//first we build the string that will be tested into the array
$array = " this is nothing more than an array";
//echo the array out to make sure that it is being displayed correctly
echo "$array <br />";
echo "now saving string to an array<br />";
//turning the string of text into an array
array ($array);

//breaking the array appart so that each piece can be read individually
$break = explode(" ", $array) or die(mysql_error());
$num = 1;
//displays each part of the array as long as array is shorter than 500 words.
for($num >= 0; $num <= 500; $num++)
{
echo $break[$num] . "<br />";
}
?>
[/php]
(im not sure though do i even need to add the line array($array) or will it work without it....well nvm i can just go check.... nope dont need that line so just ignore it.)


but i now need to know how to check the second array's break with the first arrays break so it knows when to do the color coding information.

the output will be somthing like

if the two breaks match up. then append the matching style to it.

i have built a CSS style sheet to go with it, but not included it because its not near completion. i hope that im being clear enough
Dont forget to spread the reputation to those that deserve!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC