- Impact
- 0
hi, i am new to this mySQL/PHP thing. I need to put codes in my PHP files that read mySQL Tabels/info and write them out on the website, from a phpNewsManager SQL ...
is there any online 'dictionaries' or examples I can read and try?
I made my SQL, and php works fine etc.. what I want is touse a link in php that is based on ID:
ID on php is x - then read tabel/content in SQL X etc
exs.: a href=?id=20 then my php insert a include named content_20 -
this content_20 supposed to contain my php that read out the sql content fom db
<?PHP
$sql = 'SELECT * '
. ' FROM `news` LIMIT 0, 30';
?>
or something
Thanks mates
is there any online 'dictionaries' or examples I can read and try?
I made my SQL, and php works fine etc.. what I want is touse a link in php that is based on ID:
ID on php is x - then read tabel/content in SQL X etc
exs.: a href=?id=20 then my php insert a include named content_20 -
this content_20 supposed to contain my php that read out the sql content fom db
<?PHP
$sql = 'SELECT * '
. ' FROM `news` LIMIT 0, 30';
?>
or something
Thanks mates
Last edited: