| | |
Complete List of Mysql Commands for PHP tokenization script.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
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!
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.
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
[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!
![]() |
Similar Threads
- trying to sort mysql data in a php script... (PHP)
- Using simple php redirect script but need to pull information from mysql instead (PHP)
- MySql commands in a text file (PHP)
- MySql jump / click counter script help needed from a Newbie (MySQL)
- Is there any place where you can find a complete list of python commands? (Python)
Other Threads in the PHP Forum
- Previous Thread: PHP 5.0 Finally Released!
- Next Thread: An error I have never seen before
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dropdown dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






