PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i made this script that has to print out an array
i know the SELECT looks strage .. but i tried it in phpmyadmin and its working.
so insted of the array i get this!
Parse error: parse error, unexpected $ in C:\Server\xampp\htdocs\inword.php on line 15
Well, as a start you might try removing these @
turn on displaying errors...and switching on error_reporting(E_ALL).
Because the problem might be somewhere else...
Okey nice nor i have the array printout.
So - my next question now i would like to know how i can print the array in different parts of a html document.
I can write like this:
PLEASE! USE PHP TAGS WHEN POSTING CODE! you will easily find your solution. you just have to put quotes around the html/non php stuff then put a period in between the quotes where you want to echo out the php variables.
hi
but this just works if there are just some words and hml tags in between the array output.
because i tried to enter a hole html page (with many quotes and dots andsoon) and its not showing anything but parse errors.
the thing is i have to make a scipt that automaticly prints out a order confirmation for the customer and insert the array output in some parts.
If i do it like this:
Its no problem.
But as soon as i want to add <style type="text/css">... </style> its not working.
I think this is just not the right way to solve the problem.
please HELP
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
if your php editor program doesnt have syntax highlighting i suggest to download and use one that does (lots mentioned in the general section in 1 of the stickys)
it helps because if you forget a ' or " or forget to close a " or ', the colour goes weird and makes it extremely easy to notice.