Hello members my question that i am using the mysql command in script for example:
$ramzan = “images/9690018868.jpg”;
?>
Hello members my question that i am using the mysql command in script for example:
$ramzan = “images/9690018868.jpg”;
?>
Not quite sure what the question is. Im still a newb myself, but it looks like your using php not mysql in your script. and for that youd need ajax or something.
but either way its alot more helpfull when you insert code to use the php or # code buttons above.
[php]Echo “To produce easier to read code!”;[/php]
[size=18pt]See red color [/size]
Hello members my question that i am using the mysql command in script for example:
<?php $ramzan = "images/9690018868.jpg"; ?>but this i beleive would be javascript ?
and put code in code brackets please
I’m not sure what your question is, but I am assuming you are wanting to use the php variable in your javascript. Note that you must have already established the variable (as you did in your example) before echoing it. There is nothing related to mysql here.
The problem with your example is that you have an improper php start tag. Please try this and see if it works for you:[php]<?php
$ramzan = “images/9690018868.jpg”;
?>
Please note Journeyman1900 and cabalsdemon’s comments about using the # or php button when you post your code. If you look at the formatting bar near the top of the reply window, the 7th and 8th items in on the second line of icons are a # button and a php button. You should push one (usually php) and then paste your code in between the tags that it creates. This puts your code in a nice window (like mine above). This makes it a lot easier for us to read, keeps things looking nice, and it increases your chances of getting replies.
Once you have finished your post, use the “Preview” button first to make sure that everything looks good before clicking on post.